package com.jmp.api.service;

import one.stand.enums.LoginEnum;
import one.stand.model.CompanyAccount;

public interface CompanyAccountService {
    void save(Integer companyId, Integer accountType, String appid, String appSecret, String appName);

    CompanyAccount auth(String appId);

    CompanyAccount getDefaultIfNull(Integer companyId, LoginEnum loginEnum);

    CompanyAccount get(Integer companyId, LoginEnum loginEnum);

    CompanyAccount getDefaultIfNull(String companyKey, LoginEnum loginEnum);

    CompanyAccount getByAppId(String appId);

    CompanyAccount getByAppId2(String appId);
}
